/**
*This software is under LGPL license,
*see http://www.gnu.org/licenses/lgpl-3.0.txt (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>)
*Console.h First issued by chuanshenglu@gmail.com 2008.10
*/
#ifndef __TEXTBUFFER_H__
#define __TEXTBUFFER_H__

#include "trstd.h"
namespace TR{
	class TextBuffer{
	public:
		typedef String						Line;
		typedef list<Line>					Text;
		typedef list<Line>::iterator		LineIterator;
		typedef String::iterator			CharIterator;
	protected:
		Text									mText;
		LineIterator							mCurrentLine;
		CharIterator						mCurrentText;
	public:
		TextBuffer();
		TextBuffer(TextBuffer&);
		virtual ~TextBuffer();
	};
}

#endif